import {
	http,
	toast
} from 'uview-plus'

// 登录
export const login = (params) => http.post('user/login', params)
// 忘记密码
export const resetpwd = (params) => http.post('user/resetpwd', params)
// 我的
export const mine = (params) => http.post('user/mine', params)
// 修改密码
export const changepwd = (params) => http.post('user/changepwd', params)
// 系统配置
export const configlist = (params) => http.post('user/configlist', params)
// 车辆列表
export const carList = (params) => http.post('user/carList', params)
// 添加工单
export const addOrder = (params) => http.post('order/addEditOrder', params)
// 工单列表
export const orderList = (params) => http.post('Order/orderList', params)
// 工单详情
export const orderInfo = (params) => http.post('Order/orderInfo', params)
// 删除工单
export const delOrder = (params) => http.post('Order/delOrder', params)
// 发货
export const depart = (params) => http.post('Order/depart', params)
// 送达
export const deliver = (params) => http.post('Order/deliver', params)
// 返程工单
export const childOrderList = (params) => http.post('Order/childOrderList', params)
// 城市列表
export const cityList = (params) => http.post('Order/cityList', params)
// 账目类型
export const accountType = (params) => http.post('Order/accountType', params)
// 账目列表
export const logList = (params) => http.post('Order/logList', params)
// 新增账目
export const addAccountLog = (params) => http.post('Order/addAccountLog', params)
// 账目详情
export const logInfo = (params) => http.post('Order/logInfo', params)
// 删除账目详情
export const delAccountLog = (params) => http.post('Order/delAccountLog', params)
// 账目审核
export const auditLog = (params) => http.post('Order/auditLog', params)
// 保养类型
export const baoyangType = (params) => http.post('Order/baoyangType', params)
// 保养记录
export const baoyangRecord = (params) => http.post('Order/baoyangRecord', params)
// 新增保养记录
export const addBaoyang = (params) => http.post('Order/addBaoyang', params)
// 二级分类
export const secondType = (params) => http.post('Order/secondType', params)
// 记账统计
export const accountStatistics = (params) => http.post('Order/accountStatistics', params)
// 应付选项
export const yingfuGroup = (params) => http.post('Order/yingfuGroup', params)
// 搜索工单
export const searchOrderList = (params) => http.post('Order/searchOrderList', params)
// 删除保养记录
export const delBaoyang = (params) => http.post('Order/delBaoyang', params)

// 上传图片
export const upload = 'Common/upload'